package com.hailian.fintech.hlrenting_houseserver.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hailian.fintech.hlrenting_houseserver.entity.Contract;
import com.hailian.fintech.hlrenting_houseserver.entity.ContractVo;
import com.hailian.fintech.hlrenting_houseserver.mapper.ContractMapper;
import com.hailian.fintech.hlrenting_houseserver.service.IContractService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author wyt
 * @since 2020-05-21
 */
@Service
@Slf4j
public class ContractServiceImpl extends ServiceImpl<ContractMapper, Contract> implements IContractService {

    @Autowired
    private ContractMapper contractMapper;

    /**
     * 续约合同
     * @param page
     * @param vo
     * @return
     */
    @Override
    public Page<Contract> selectObject(Page page, ContractVo vo) {
        return contractMapper.selectObject(page,vo);
    }
}
